import { Button} from 'antd'

const fndelete = (key) => {
  console.log(key);
}

const columns = [
  {
    title: '序号',
    width: 70,
    dataIndex: 'index',
    key: 'index',
  },
  {
    title: '检查时间',
    width: 120,
    dataIndex: 'checkTime',
    key: 'checkTime',
  },
  {
    title: '检查结果',
    dataIndex: 'result',
    key: 'result',
    width: 120,
  },
  {
    title: '单位名称',
    dataIndex: 'shopName',
    key: 'shopName',
    width: 120,
  },
  {
    title: '许可证状态',
    dataIndex: 'licenseStatus',
    key: 'licenseStatus',
    width: 120,
  },
  {
    title: '台账管理',
    dataIndex: 'listManagement',
    key: 'listManage',
    width: 120,
  },
  {
    title: '制度管理',
    dataIndex: 'systemManagement',
    key: 'systemManage',
    width: 120,
  },
  {
    title: '人员管理',
    dataIndex: 'personnelManagement',
    key: 'personnelManagement',
    width: 120,
  },
  {
    title: '场所管理',
    dataIndex: 'placeManagement',
    key: 'placeManagement',
    width: 120,
  },
  {
    title: '卫生管理',
    dataIndex: 'sanitationManagement',
    key: 'sanitationManagement',
    width: 120,
  },
  {
    title: '创建时间',
    dataIndex: 'creationTime',
    key: 'creationTime',
    width: 150,
  },
  {
    title: '创建者',
    dataIndex: 'creator',
    width: 120,
    key: 'creator',
  },
  {
    title: '操作',
    key: 'operation',
    fixed: 'right',
    width: 120,
    render: ({key}) => (<>
      <Button type="link" size="small">编辑</Button>
      <Button type="link" danger size="small" onClick={() => fndelete(key)}>删除</Button>
    </>),
  },
];

export default columns